/**
 * fulihui.com Inc.
 * Copyright (c) 2015-2016 All Rights Reserved.
 */
package com.fulihui.integral.core.common;

import org.near.servicesupport.error.ServiceError;

/**
 * @author yunfeng.li
 * @version $Id: v 0.1 2017年04月28日 13:11 yunfeng.li Exp $
 */
public enum ISBaseErrors implements ServiceError {

    NON_CONFORMITY(996, "不符合积分奖励条件!"),

    SWITCH_IS_NOT_OPEN(997, "积分规则开关为关闭!"),

    NO_CONFIG_JIFEN_RULE(998, "未获取到积分规则配置!"),

    ILLEGAL_OPERATION_TYPE(999, "非法操作类型!"),

    USER_ACCOUNT_JIFEN_INSUFFICIENT(1000, "用户账户积分余额不足!"),

    NO_DATA_MODIFY_INFO(1001, "更新失败，影响行数为0!"),

    NO_DATA_INSERT_INFO(1002, "插入失败，影响行数为0!"),

    NO_DATA_INSERT_DETAIL(1003, "插入详情流水失败，影响行数为0!"),

    NO_PARAMETER(1004, "请求参数错误!"),;


    private int errcode;

    private String errmsg;

    ISBaseErrors(int errcode, String errmsg) {
        this.errcode = errcode;
        this.errmsg = errmsg;
    }

    @Override
    public int getErrcode() {
        return errcode;
    }

    @Override
    public String getErrmsg() {
        return errmsg;
    }
}
